<template>
  <div id="app">
    <!-- 回到顶部 -->
    <el-backtop target="#app">
      <div
        style="
           {
            height: 100%;
            width: 100%;
            background-color: #f2f5f6;
            box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
            text-align: center;
            line-height: 40px;
            color: #1989fa;
          }
        "
      >
        UP
      </div>
    </el-backtop>

    <!-- 头部 -->
    <HeaderView username="巨蟹座不吃鱼"></HeaderView>

    <!-- 中间内容 -->
    <div class="main-container">
      <router-view />
    </div>

    <!-- 底部 -->
    <FooterView></FooterView>
  </div>
</template>
<script>
import HeaderView from '@/components/HeaderView.vue'
import FooterView from '@/components/FooterView.vue'
export default {
  components: {
    HeaderView,
    FooterView
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  overflow: hidden;
  background: url(./assets/bg.jpg) no-repeat left top;
  background-size: 100% 100%;
  background-attachment: fixed;

  .main-container {
    width: 100%;
    height: auto;
  }
}
</style>
